package com.lct.d1_object;
//对象的数据结构
public class Student {

    String name;
    double chinese;
    double math;

    public void printAllScore(){
        System.out.println(name + "总成绩是" + (chinese + math));
    }

    public void printAverageScore(){
        System.out.println(name + "平均成绩是" + (math + chinese) / 2);
    }



}
